public class LogicTest {
    public static void main(String[] args) {
        boolean b1 = false;
        int num = 10;
        System.out.println(b1 & (num++ > 0)); // false
        System.out.println(num); // 11

        System.out.println(b1 && (num++ > 0)); // false
        System.out.println(num); // 11

        b1 = true;
        System.out.println(b1 | (num++ > 0)); // false
        System.out.println(num); // 12

        System.out.println(b1 || (num++ > 0)); // false
        System.out.println(num); // 12

    }
}
